#ifndef INSTRUMENTINFO_H
#define INSTRUMENTINFO_H

#include <QWidget>

#include <conversions.h>

#include <instrument.h>

namespace Ui {
class InstrumentInfo;
}

class InstrumentInfo : public QWidget
{
    Q_OBJECT
    
public:
    explicit InstrumentInfo(Instrument ins, QWidget *parent = 0);
    ~InstrumentInfo();

    void setInstrument(Instrument instrument) { ins = instrument; updateInstrument(); }
    void updateInstrument();

    void repaintPixmaps();
    
private:
    Note trp_note, ton_note, read_note, real_note;
    Clef clf;
    Instrument ins;

    Ui::InstrumentInfo *ui;

public slots:
    void onLHSChanged();
    void onRHSChanged();
    void onClefChanged();
};

#endif // INSTRUMENTINFO_H
